<?php
class Cliente {
	// Hold an instance of the class
	private static $_instance;
	
	private $id =0;
	private $nome = "";
	private $apelido = "";
	public static function getInstance() {
		if (!(self::$_instance instanceof self)) {
			self::$_instance = new self();
		}
		return self::$_instance;
	}
	// Do not allow an explicit call of the constructor: $v = new Singleton();
	final private function __construct() {
	}
	// Do not allow the clone operation: $x = clone $v;
	final private function __clone() {
	}
	
}